package object;

/**
 * 最小子数组对象
 */

public class SubArrayObj {

    private int beginIndex;

    private int endIndex;

    private int sum;

    public SubArrayObj(int beginIndex, int endIndex, int sum) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.sum = sum;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public void setBeginIndex(int beginIndex) {
        this.beginIndex = beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public void setEndIndex(int endIndex) {
        this.endIndex = endIndex;
    }

    public int getSum() {
        return sum;
    }

    public void setSum(int sum) {
        this.sum = sum;
    }

    @Override
    public String toString() {
        return "SubArrayObj{" +
                "beginIndex=" + beginIndex +
                ", endIndex=" + endIndex +
                ", sum=" + sum +
                '}';
    }
}
